package com.wanshi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wanshi.entity.PasswordReq;
import com.wanshi.entity.Staff;
import com.wanshi.utils.Result;

/**
 * <p>
 * 员工信息表 服务类
 * </p>
 *
 * @author 顽石教育-www.wanshi.com
 * @since 2021-12-16
 */
public interface IStaffService extends IService<Staff> {

    Result add(Staff staff);

    Staff findAllByName(String username);

    Result checkPassowrd(PasswordReq req);

    Result UpdatePassword(PasswordReq req);

    Result login(String username,String password);

    Result getUserInfo(String token);
}
